//
//  YLTransactionVerifier.swift
//  Distance
//
//  Created by changhe on 2025/4/24.
//

import Foundation

public protocol YLTransactionValidator {
    
    /// 验证交易
    /// - Parameters:
    ///   - transaction: 交易信息
    ///   - receiptData: 收据数据
    ///   - completion: 验证完成回调，返回验证结果和可能的错误
    func verifyTransaction(
        transaction: YLTransactionInfo,
        receiptData: Data,
        receiptDataIsJws: Bool,
        completion: @escaping (Bool, Error?) -> Void
    )
}
